<nav class="navbar navbar-toggleable-md navbar-light bg-dark">
	<div class="container">
		<a class="navbar-brand" href="#">用户管理系统</a>
			<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
				<span class="navbar-toggler-icon"></span>
			</button>

		<div class="collapse navbar-collapse" id="navbarsExampleDefault">
			<ul class="navbar-nav mr-auto">
				<li *ngIf="isLogin" class="nav-item">
					<a class="nav-link" href="#" routerLink="/">首页 <span class="sr-only">(current)</span></a>
				</li>
			</ul>
			<ul class="navbar-nav ml-auto">
				<li *ngIf="!isLogin && showregiter" class="nav-item">
					<a class="nav-link" href="#" routerLink="/register">注册</a>
				</li>
				<li *ngIf="!isLogin && showregiter" class="nav-item">
					<a class="nav-link" href="#" routerLink="/login">登录</a>
				</li>
				<li *ngIf="isLogin" class="nav-item">
					<a class="nav-link" href="#">{{loguser}}</a>
				</li>
				<li *ngIf="isLogin" class="nav-item">
					<a class="nav-link" href="#" routerLink="/setting">设置</a>
				</li>
				<li *ngIf="isLogin" class="nav-item">
					<a class="nav-link" href="#" (click)="onlogout()">退出</a>
				</li>
			</ul>
		</div>
	</div>
 
</nav>